export const ADMIN_CODE = 1; // 系统管理员
export const AREA_CODE = 2; // 区域管理员
export const INSPECTION_TEAM_LEADER = 3; // 巡查队长
export const INSPECTION_TEAM_MEMBER = 4; // 巡查人员
export const ROLE_CODES = [ADMIN_CODE, AREA_CODE, INSPECTION_TEAM_LEADER, INSPECTION_TEAM_MEMBER];
export const Local = {
  get(key) {
    return JSON.parse(window.localStorage.getItem(key));
  },
  set(key, value) {
    window.localStorage.setItem(key, JSON.stringify(value));
  },
  remove(key) {
    window.localStorage.removeItem(key);
  },
  clear() {
    window.localStorage.clear();
  },
};
